using System;
using MvpFramework;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

namespace GersonLehrman.Experts.UnitTests.Infrastructure
{

    [TestFixture]
    public class A_View_Location_Repository
    {
        private MvpViewLocationRepository repository;

        [SetUp]
        public void Arrange()
        {
            repository = new MvpViewLocationRepository();
        }
        [Test]
        public void AddLocationFor_adds_a_location_that_can_be_retrieved()
        {
            const string location = "somesillyplace";
            repository.AddLocationFor<SomeSillyView>(location);
            Assert.That(repository.GetLocationFor<SomeSillyView>(),Is.EqualTo(location));
        }
        public interface SomeSillyView:IMvpView
        {
            
        }
    }
}